package com.scau.yangsuiyu.estore.dababases.entity;


import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author suiyu_yang
 * @description 买家和卖家的一般类
 * @date 2019-05-20 10:24
 * @email suiyu_yang@163.com
 */

public abstract class User {
    private int id;
    private String psw;
    private String phone;
    private String username;
    private String email;
    private String profilePhoto;
    private String nickname;
    private String truename;
    private Byte sex;
    private Date birthday;
    private String liveAddress;
    private String bornAddress;
    private Timestamp createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getProfilePhoto() {
        return profilePhoto;
    }

    public void setProfilePhoto(String profilePhoto) {
        this.profilePhoto = profilePhoto;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String trueName) {
        this.truename = trueName;
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getLiveAddress() {
        return liveAddress;
    }

    public void setLiveAddress(String liveAddress) {
        this.liveAddress = liveAddress;
    }

    public String getBornAddress() {
        return bornAddress;
    }

    public void setBornAddress(String bornAddress) {
        this.bornAddress = bornAddress;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", psw='" + psw + '\'' +
                ", phone='" + phone + '\'' +
                ", userName='" + username + '\'' +
                ", email='" + email + '\'' +
                ", profilePhoto='" + profilePhoto + '\'' +
                ", nickName='" + nickname + '\'' +
                ", trueName='" + nickname + '\'' +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", liveAddress='" + liveAddress + '\'' +
                ", bornAddress='" + bornAddress + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
